//16：定义整数的 二维数组。求二维数组中的最大值
public class Task2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[][] arr = new int[2][3];
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                System.out.println("Please input teh No." + (i + 1) + " row ,the No." + (j + 1) + "column");
                arr[i][j] = in.nextInt();
            }
        }
        int temp = 0, max = 0;
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                temp = arr[i][j];
                if (temp >= max) {
                    max = temp;
                } else continue;
            }
        }
        System.out.println("The maximum:" + max);
    }
}